home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / batch / tsbat36.zip / MAKESURE.BAT < prev    next >
DOS Batch File  |  1990-01-14  |  953b  |  27 lines

  1. echo off
  2. rem   MAKESURE.BAT
  3. rem
  4. echo  A simple command.com virus warning by Timo Salmi 23-Oct-88
  5. rem   (See CHKSUM.ARC by Bob Taylor for a much better idea.)
  6. rem
  7. rem   First copy a certainly clean command.com to shadow.com
  8. rem   Then you need a file comparison program (here fc.exe)
  9. rem   The logic should be evident from below. D: is a ramdisk.
  10. rem
  11. rem   Another simple trick of viral protection is always using
  12. rem   a copy of a clean command.com e.g. as follows
  13. rem      copy a:\command.com d:\command.com
  14. rem      set comspec=d:\command.com
  15.  
  16. rem  Comment 14-Jan-90: This kind of protection is quite feeble. My best
  17. rem  advice would be to check all software prior using it. There are some
  18. rem  very good virus scanners for this purpose, such as McAfee Associates
  19. rem  shareware scan.exe program.
  20.  
  21. echo on
  22. copy a:\command.com d:\
  23. copy a:\shadow.com d:\
  24. fc /b d:command.com d:shadow.com
  25. del d:\command.com
  26. del d:\shadow.com
  27.